dataSource {
    pooled = true
    driverClassName = "com.mysql.jdbc.Driver"
    username = "pp"
    password = "password"
}

hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'com.opensymphony.oscache.hibernate.OSCacheProvider'
}

// environment specific settings
environments {
    development {
        dataSource {
            dbCreate = "update" //one of 'create', 'create-drop','update'
            url = "jdbc:mysql://localhost/pp_dev"
        }
    }

    test {
        dataSource {
            pooled = true
            driverClassName = "org.hsqldb.jdbcDriver"
            username = "sa"
            password = ""
            dbCreate = "create"
            url = "jdbc:hsqldb:mem:testDb"
        }
    }

    production {
        dataSource {
            url = "jdbc:mysql://localhost/pp_dev"
        }
    }
}
